package com.cium.aqie.objectOriented.dataclass

/**
 * @Function:
 * @Author: aqie
 * @Date: 2019/9/1 8:24
 */
fun main(args: Array<String>) {
    val china = Country(0, "中国")
    println(china)
    println(china.component1())
    println(china.component2())
    val (id, name) = china
    println(id)
    println(name)


    val componentX = ComponentX()
    val (a, b, c, d) = componentX
    println("$a $b$c$d")
}